<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Tick_code_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-tick_code_id" data-rule="required" data-source="tick/tick_code/index" class="form-control selectpage" name="row[tick_code_id]" type="text" value="{$row.tick_code_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Base_code_img')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-base_code_img" class="form-control" data-rule="required" name="row[base_code_img]" type="text" value="{$row.base_code_img|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-base_code_img" class="btn btn-danger faupload"
                                  data-input-id="c-base_code_img"
                                  data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp"
                                  data-multiple="false" data-preview-id="p-base_code_img"><i class="fa fa-upload"></i>
                        {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-img" class="btn btn-primary fachoose"
                                  data-input-id="c-base_code_img" data-mimetype="image/*" data-multiple="false"><i
                            class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-base_code_img"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-base_code_img"></ul>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Activity_code')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-activity_code" data-rule="required" class="form-control " rows="5" name="row[activity_code]" cols="50">{$row.activity_code|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Max_Click_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-max_click_num" data-rule="required" class="form-control" name="row[max_click_num]" min="0" type="number" value="{$row.max_click_num|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-remark" data-rule="required" class="form-control" name="row[remark]" type="text" value="{$row.remark|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="{$row.weigh|htmlentities}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
